Connect via SSH
The fastest way to try Duet is to connect to the hosted version:<username> with any username you’d like to use in the session (e.g., alice, bob). Your username will be visible to other users in the room.
If you don’t specify a username, you’ll be assigned the default username “guest”.
Create or join a room
Once connected, you’ll see the launch screen with two options:1
Create a new room
Press
c or C to create a new room.You can optionally enter a description for your room (e.g., “React debugging session”). This description will be used to name the workspace directory.Press Enter to create the room. You’ll see a shareable room ID (UUID format) that others can use to join.2
Join an existing room
Press
J (capital J) to join an existing room.Enter the room ID shared by the host and press Enter.You’ll join the session and see the existing terminal history and any ongoing AI conversations.Room IDs are UUIDs (e.g.,
f47ac10b-58cc-4372-a567-0e02b2c3d479). Share this ID with collaborators to let them join your session.Your first pairing session
After creating or joining a room, you’ll enter the main collaboration interface:Interface overview
The screen is divided into three sections:- Left sidebar - Shows your username, room ID, connected users, and keyboard shortcuts
- Center terminal - Shared terminal where all users can type and see output in real-time
- Right AI sidebar - (Optional) AI conversation panel, toggle with
Ctrl+A
Using the shared terminal
Everything you type goes to the shared terminal and is visible to all users:Keyboard shortcuts
Essential shortcuts
Essential shortcuts
Ctrl+G- Ask the AI assistant a questionCtrl+R- Run a command in the sandboxCtrl+A- Toggle AI sidebar visibilityCtrl+L- Leave room and return to launch screen
Try the AI assistant
PressCtrl+G to activate AI mode and ask a question:
<run> tags:
Run sandbox commands
PressCtrl+R to run a command directly in the Cloudflare sandbox:
Leave the session
When you’re done:- Press
Ctrl+Lto leave the room - You’ll return to the launch screen
- The room will be cleaned up automatically when the last user leaves
Run Duet locally
Want to run your own instance?Next steps
Core features
Learn about pairing sessions, terminal sharing, and AI features
Keyboard shortcuts
Master all keyboard shortcuts and terminal commands
AI interaction
Deep dive into AI assistant capabilities
Deploy your own
Self-host Duet with your own Cloudflare Worker